﻿using Omabar.Entity;
using Omabar.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Omabar.BLL
{
    public class Route_Gallery_BLL
    {
        private readonly Route_Gallery_Entity entity;
        public Route_Gallery_BLL()
        {
            entity = new Route_Gallery_Entity();
        }

        public int GetCount(string sql)
        {
            return entity.GetCount(sql);
        }

        public RESP_Info ExecuteSQL(string sql)
        {
            return entity.ExecuteSQL(sql);
        }

        public RESP_Info Add(ROUTE_GALLERY model)
        {
            return entity.Add(model);
        }

        public RESP_Info Update(ROUTE_GALLERY model)
        {
            return entity.Update(model);
        }

        public RESP_Info Delete(ROUTE_GALLERY flight)
        {
            return entity.Delete(flight);
        }

        public ROUTE_GALLERY GetModel(string id)
        {
            return entity.GetModel(id);
        }

        public ROUTE_GALLERY GetModelBySQL(string sql)
        {
            return entity.GetModelBySQL(sql);
        }

        public List<ROUTE_GALLERY> GetModels(string sql)
        {
            return entity.GetModels(sql);
        }
    }
}
